home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 22
/
Aminet 22 (1997)(GTI - Schatztruhe)[!][Dec 1997].iso
/
Aminet
/
util
/
libs
/
Identify.lha
/
Identify
/
arexx
/
system.ify
< prev
next >
Wrap
Text File
|
1997-04-24
|
3KB
|
93 lines
/*****************************************************************
** **
** system.ify rexxidentify.library demonstration **
** **
******************************************************************
**
** (c) 1997 by Richard Körber -- All Rights Reserved
**
** You may use this example freely for your own programs.
**
*/
/* Add the library functions */
CALL AddLib("/libs/rexxidentify.library",0,-30,0)
/* Get every information about the hardware */
system = ID_Hardware("SYSTEM")
cpu = ID_Hardware("CPU")
fpu = ID_Hardware("FPU")
mmu = ID_Hardware("MMU")
osver = ID_Hardware("OSVER")
execver = ID_Hardware("EXECVER")
wbver = ID_Hardware("WBVER")
romsize = ID_Hardware("ROMSIZE")
chipset = ID_Hardware("CHIPSET")
gfxsys = ID_Hardware("GFXSYS")
chipram = ID_Hardware("CHIPRAM")
fastram = ID_Hardware("FASTRAM")
ram = ID_Hardware("RAM")
setpatch = ID_Hardware("SETPATCHVER")
audiosys = ID_Hardware("AUDIOSYS")
osnr = ID_Hardware("OSNR")
vmmchip = ID_Hardware("VMMCHIPRAM")
vmmfast = ID_Hardware("VMMFASTRAM")
vmmram = ID_Hardware("VMMRAM")
plnchip = ID_Hardware("PLNCHIPRAM")
plnfast = ID_Hardware("PLNFASTRAM")
plnram = ID_Hardware("PLNRAM")
vbr = ID_Hardware("VBR")
lastalert = ID_Hardware("LASTALERT")
vblank = ID_Hardware("VBLANKFREQ")
power = ID_Hardware("POWERFREQ")
eclock = ID_Hardware("ECLOCK")
slowram = ID_Hardware("SLOWRAM")
gary = ID_Hardware("GARY")
ramsey = ID_Hardware("RAMSEY")
battclock = ID_Hardware("BATTCLOCK")
/* Some nice formatting */
IF Left(system,1)='A' /* English grammar... */
THEN system = 'an '||system
ELSE system = 'a '||system
chipram = Right(chipram,7) /* 7 chars wide */
fastram = Right(fastram,7)
ram = Right(ram,7)
vmmchip = Right(vmmchip,7)
vmmfast = Right(vmmfast,7)
vmmram = Right(vmmram,7)
plnchip = Right(plnchip,7)
plnfast = Right(plnfast,7)
plnram = Right(plnram,7)
IF Left(lastalert,8)='FFFFFFFF' /* Do we have an alert code? */
THEN lastalert = "no alert yet... :)"
/* Now tell the user what we've found... */
SAY "This is" system "with" chipset "Chipset."
SAY "It has a" cpu "CPU," fpu "FPU and" mmu "MMU."
SAY ""
SAY "Versions: OS" osver "(known as" osnr ||") Exec" execver "Workbench" wbver ||"."
SAY " SetPatch" setpatch ||", ROM size" romsize
SAY ""
SAY "Multimedia: Graphics" gfxsys ||", Audio" audiosys
SAY ""
SAY "Specialities: VBR" vbr ||", Gary" gary ||", Ramsey" ramsey ||", Clock" battclock
SAY " E-Clock" eclock ||", VBlank" vblank ||", Power" power
SAY ""
SAY "Memory: CHIP FAST TOTAL (SLOW" slowram ||")"
SAY " REAL " plnchip plnfast plnram
SAY " VIRTUAL" vmmchip vmmfast vmmram
SAY " TOTAL " chipram fastram ram
SAY ""
SAY "Last alert: " lastalert
SAY ""
EXIT